import orm
from models import User,Blog,Comment
import asyncio

async def test():
    await orm.create_pool(user='root',password='root',db='awesome',loop=loop)
    u=User(name='Test',email='test@example.com',passwd='123456',image='about:blank')
    await u.save()

if __name__=='__main__':
    loop=asyncio.get_event_loop()
    loop.run_until_complete(test())
    print('test finish')
    loop.close()
